package com.aaa.hospital.Client.service.Impl;

import com.aaa.hospital.Client.mapper.UserTwoMapper;
import com.aaa.hospital.Client.pojo.User;
import com.aaa.hospital.Client.service.UserServicetwo;
import com.aaa.hospital.Client.util.UserDB;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
//徐要磊
import java.util.List;

@Service
public class UserServicetwoImpl implements UserServicetwo {
    @Autowired
    private UserTwoMapper mapper;
    @Override
    public List<User> queryName(String name) {
        return mapper.queryName(name);
    }

    @Override
    public List<User> queryByName(String name) {
        return mapper.queryByName(name);
    }

    @Override
    public void inserttwo(UserDB userDB) {
        mapper.inserttwo(userDB);
    }

    @Override
    public List<User> queryByName2(Integer uid) {
        return mapper.queryByName2(uid);
    }
}
